package com.zhuss.food.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.food.food.SearchFoodBo;
import com.zhuss.bean.vo.food.food.DetailFoodVo;
import com.zhuss.bean.vo.food.food.ListFoodVo;
import com.zhuss.food.db.entity.Food;
import com.zhuss.food.db.dao.gen.FoodMapper;

@Mapper
public interface FoodDao extends FoodMapper {
	
	void create(Food record);
	
	void delete(Food record);
	
	List<Food> listAll(@Param("area") Integer area, @Param("status") Integer status);

	List<ListFoodVo> list(SearchFoodBo bo);

	Integer countList(SearchFoodBo bo);

	DetailFoodVo detail(@Param("foodId") Long foodId);
	
	List<Food> listByName(@Param("name") String name, @Param("area") Integer area);
	
	List<Food> listByCategory(@Param("category") Integer category, @Param("status") Integer status, @Param("area") Integer area);
    
}